package com.zdzx.model.service.content.result;

import java.io.Serializable;

import com.zdzx.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "课程讨论列表", description = "课程讨论列表")
public class CourseMessageList extends BaseEntity implements Serializable{/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String userId;
	@ApiModelProperty(value = "内容", name = "content")
	private String content;
	@ApiModelProperty(value = "头像地址", name = "headUrl")
	private String headUrl;
	@ApiModelProperty(value = "用户名", name = "username")
	private String username;
	/*
	public void setHeadUrl(String headUrl,boolean flag) {
		if(!StringUtils.isEmpty(headUrl)&&!headUrl.contains(SystemConfig.ossIp)&&flag)
		this.headUrl = SystemConfig.ossIp+headUrl;
		else
		this.headUrl=headUrl;
	}
	public void setHeadUrl(String headUrl) {
		if(!StringUtils.isEmpty(headUrl)&&!headUrl.contains(SystemConfig.ossIp))
		this.headUrl = SystemConfig.ossIp+headUrl;
		else
		this.headUrl=headUrl;
	}*/
}
